define([], function(){
	var tpl = {};

	tpl.confirm = function(){
		var html = "";
		html += confirm();
		return html;
	}
	tpl.modal = function(){
		var html = '';
		html += modal();
		return html;
	};

	var confirm = function(){
		return 	'<script id="tpl_toast_confirm" type="text/html">'+
				'	<div class="toast-confirm-wrap">'+
				'		<div class="toast-masklayer"></div>'+
				'		<div class="{{confirmClassName}}">'+ 
				'			{{if tip}}'+
                '   		<div class="text">{{tip}}</div>'+
                '			{{/if}}'+
                '   		<div>'+
                '       		<button type="button" class="btn btn-success confirm">确认</button>'+
                '       		<button type="button" class="btn btn-default cancel">取消</button>'+
                '   		</div>'+
                '		</div>'+
                '	</div>'+
				'</script>';
	}
	var modal = function(){
		return 	'<script id="tpl_toast_modal" type="text/html">'+
				'	<div class="modal fade {{className}}" tabindex="-1" role="dialog">'+
				'		<div class="modal-dialog {{size}}" role="document">'+
				'   		<div class="modal-content">'+
				'	    		<div class="modal-header">'+
				'	        		<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>'+
				'	        		<div class="modal-title tc">{{tit}}</div>'+
				'	    		</div>'+
				'	    		<div class="modal-body"></div>'+
				'    		</div>'+
			  	'		</div>'+
			  	'	</div>';
				'</script>';
	};

	return tpl;
});